<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1 {
            border: 3px solid black;

        }
        .div2 {
            border: 3px solid red;
            /* overflow: hidden; */
        }
        .div2 img {
            float: left;
            padding: 10px;

        }
        .div2:after {
            content: '';
            display: block;
            clear: left;

        }
    </style>
</head>
<body>
    <div class="div1">
        <img src="https://tupian.qqw21.com/article/UploadPic/2019-8/20198312353790082.jpeg" alt="">
    </div>
    <div class="div2">
        <img src="https://tupian.qqw21.com/article/UploadPic/2019-8/20198312353790082.jpeg" alt="">
    </div>
</body>
</html>